package com.ruoyi.userr.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 作品点赞对象 likes
 * 
 * @author lpt
 * @date 2025-08-13
 */
@Alias("UserLikes")
public class Likes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞记录ID */
    @Excel(name = "点赞记录ID")
    private Integer id;

    /** 点赞用户ID */
    @Excel(name = "点赞用户ID")
    private Integer likerUid;

    /** 被点赞作者ID */
    @Excel(name = "被点赞作者ID")
    private Integer authorUid;

    /** 被点赞内容ID（作品/菜谱ID） */
    @Excel(name = "被点赞内容ID", readConverterExp = "作=品/菜谱ID")
    private Integer targetId;

    /** 作品/菜谱 */
    @Excel(name = "作品/菜谱")
    private Long targetType;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setLikerUid(Integer likerUid) 
    {
        this.likerUid = likerUid;
    }

    public Integer getLikerUid() 
    {
        return likerUid;
    }

    public void setAuthorUid(Integer authorUid) 
    {
        this.authorUid = authorUid;
    }

    public Integer getAuthorUid() 
    {
        return authorUid;
    }

    public void setTargetId(Integer targetId) 
    {
        this.targetId = targetId;
    }

    public Integer getTargetId() 
    {
        return targetId;
    }

    public void setTargetType(Long targetType) 
    {
        this.targetType = targetType;
    }

    public Long getTargetType() 
    {
        return targetType;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("likerUid", getLikerUid())
            .append("authorUid", getAuthorUid())
            .append("targetId", getTargetId())
            .append("targetType", getTargetType())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
